package com.ybb.service;

        import com.ybb.pojo.User;

        import java.util.List;

public interface UserService {
   int updatePassword(Long id,String oldPassword,String newPassword);
   List<User> getUsers(String queryName,long queryUserRole,int currentPageNum,int userCountPerPage);


    int getUsersCount(String queryName,long queryUserRole);
    User getUserById(long uid);

     int upDateUser(User user);

     int deleteUser(long uid);

     boolean isExists(long uid);

     boolean hasUserCode(String userCode);


    int insertUser(User user);

}
